using System.Collections.Generic;
using ImageProcessing.Common;

namespace ImageProcessing.Tests.Engine
{
    public static class ListComparerHelper
    {
        public static bool EqualListValues(List<InterestPoint> expected, List<InterestPoint> comparison)
        {
            bool same = true;

            if (expected.Count != comparison.Count)
                same = false;
            else
                for (int i = 0; i < expected.Count; i++)
                {
                    if (expected[i].X != comparison[i].X)
                    {
                        same = false;
                        break;
                    }

                    if (expected[i].Y != comparison[i].Y)
                    {
                        same = false;
                        break;
                    }
                }

            return same;
        }
    }
}